// import { Injectable, NotFoundException, PipeTransform } from '@nestjs/common';
// import { Service } from '../entities/service.entity';
// import { ServiceService } from '../service.service';

// @Injectable()
// export class SellById implements PipeTransform<string, Promise<Service>> {
//   constructor(private serviceService: ServiceService) {}

//   async transform(value: string): Promise<Service> {
//     const result = await this.serviceService.findOne(value);
//     if (!result) {
//       throw new NotFoundException('销售员工不存在');
//     }
//     return result;
//   }
// }
